import { WEI_BO_APP_KEY, WEI_BO_UID } from '@/constants/index.js'

/**
 * @params  imgUrl 图片地址
 * @params  path   分享路径
 * @description  分享函数
 */

export function weiBoShare(imgUrl, path) {
  window.open(
    window.open(
      `https://service.weibo.com/share/share.php?appkey=${WEI_BO_APP_KEY}&ralateUid=${WEI_BO_UID}&pic=${imgUrl}&title=这张图不错哦，给大家分享一下 ${path}`,
      '_blank'
    )
  )
}
